import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;
/**
 * Write a description of class Hoja here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Hoja extends Actor
{
    /**
     * @elementos 
     * lista que se utiliza para guardar los objetos que estan dentro de la Hoja
     */
    private List listaTags;
    
    /**
     * Constructor de Hoja
     */
    public void Hoja()
    {
        listaTags = new ArrayList();
    }
    /**
     * Act - do whatever the Hoja wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        // Add your action code here.
    }   
    
    
    /**
     * Regresa todas las etiquetas que tiene dentro del objeto 
     */
    public List<Tags> dameListaTags()
    {
        return listaTags;
    }
    
    public void meteTagsEnLista(Tags tag)
    {
        if(tag != null)
        {
            listaTags.add(tag);
        }
    }
}
